package com.woniuxy.enjoylife.mapper;

import com.woniuxy.enjoylife.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.enjoylife.entity.Server;
import com.woniuxy.enjoylife.entity.dto.ReturnGoodsDto;
import com.woniuxy.enjoylife.entity.dto.ReturnServerDto;
import com.woniuxy.enjoylife.entity.dto.SelectGoodsDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-23
 */
public interface GoodsMapper extends BaseMapper<Goods> {


    //查找单个
    Goods selectSingle(Goods o);
    //查找多个
    List<ReturnGoodsDto> selectGoodsDto(SelectGoodsDto o);
    //新增
    int insert(Goods o);
    //修改
    int update(Goods o);
    //删除
    int delete(Goods o);

    String selectGoodsName(int id);

    BigDecimal selectGoodsPrice(int id);
}
